package com.multitrack.util;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface.OnClickListener;

public class CloseAlertDialog {

	Builder dialog;
	
	public CloseAlertDialog(Context context, String title, String message, OnClickListener listener) {
		dialog = new AlertDialog.Builder(context)
		.setTitle(title)
		.setMessage(message)
		.setPositiveButton("닫기", listener);
	}
	
	public CloseAlertDialog(Context context, int title, int message, OnClickListener listener) {
		dialog = new AlertDialog.Builder(context)
		.setTitle(title)
		.setMessage(message)
		.setPositiveButton("닫기", listener);
	}
	
	public CloseAlertDialog(Context context, String title, int message, OnClickListener listener) {
		dialog = new AlertDialog.Builder(context)
		.setTitle(title)
		.setMessage(message)
		.setPositiveButton("닫기", listener);
	}
	
	public CloseAlertDialog(Context context, int title, String message, OnClickListener listener) {
		dialog = new AlertDialog.Builder(context)
		.setTitle(title)
		.setMessage(message)
		.setPositiveButton("닫기", listener);
	}
	
	public CloseAlertDialog(Context context, int title, String message, OnClickListener poslistener, OnClickListener negalistener) {
		dialog = new AlertDialog.Builder(context)
		.setTitle(title)
		.setMessage(message)
		.setPositiveButton("예", poslistener)
		.setNegativeButton("아니오", negalistener);
	}
	
	public CloseAlertDialog(Context context, int title, int message, OnClickListener poslistener, OnClickListener negalistener) {
		dialog = new AlertDialog.Builder(context)
		.setTitle(title)
		.setMessage(message)
		.setPositiveButton("예", poslistener)
		.setNegativeButton("아니오", negalistener);
	}
	
	public void show() {
		dialog.show();
	}
}
